package cn.xyinping.hrm.service.impl;

import cn.xyinping.hrm.Repository.CourseElasticsearchRepository;
import cn.xyinping.hrm.doc.CourseDoc;
import cn.xyinping.hrm.service.ICourseESService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 27266
 * @desrciption
 * @date 2021/11/28
 */
@Service
public class CourseESServiceImpl implements ICourseESService {
    @Autowired
    private CourseElasticsearchRepository repository;
    /**
     * 保存课程
     * @param doc
     */
    @Override
    public void save(CourseDoc doc) {
        repository.save(doc);
    }
}
